#ifndef ENCODER_H
#define ENCODER_H

#include <rthw.h>
#include <rtthread.h>
#include "rtconfig.h"
#include "main.h"

typedef struct 
{
    /* data */
    int16_t cnt;
    int16_t cnt_temp;
    int8_t cnt_speed;
}ENCODER;

extern ENCODER encoder;

void encoder_thread_entry(void *parameter);


#endif

